var $r = 200;
var $g = 200;
var $b = 200;

function initializeCanvas() {
	var canvas = document.getElementById("GwtToJs");  
	var processingInstance = new Processing(canvas, renderProcessing);
}

function renderProcessing(processing) {  
	processing.size(480, 320);
	processing.smooth();
	
 	processing.draw = function() {  
 		processing.background(55, 55, 55);
 		processing.fill($r, $g, $b);
 		processing.ellipse(240, 160, 100, 100);  
 	};
}

function setColor(newR, newG, newB) {
	$r = newR;
	$g = newG;
	$b = newB;
}